﻿using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Text;

namespace Chapter6Classes
{
	public partial class Order_Details
	{
		public Double DetailTotal { get { return (1 - Discount)*(Double) (Quantity*UnitPrice); }}

		partial void OnQuantityChanged()
		{
			Console.WriteLine("Quantity has been changed to {0}", Quantity);
		}

		partial void OnQuantityChanging(Int16 value)
		{
			Console.WriteLine("Changing quantity from {0} to {1}.", Quantity, value);
		}
	}
}
